//
//  LYSubsCell.m
//  artist
//
//  Created by Jay_Apple on 16/4/20.
//  Copyright © 2016年 viviyoo. All rights reserved.
//

#import "LYSubsCell.h"


@interface LYSubsCell ()
@property (weak, nonatomic) IBOutlet UIButton *contentBtn;

@end

@implementation LYSubsCell



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    [self.contentBtn setTitleColor:[UIColor colorWithHexString:@"#333333" alpha:1] forState:UIControlStateNormal];
    
    self.contentBtn.layer.masksToBounds = YES;
    self.contentBtn.layer.cornerRadius = 5;
    self.contentBtn.layer.borderColor = [UIColor colorWithHexString:@"#999999" alpha:1].CGColor;
    self.contentBtn.layer.borderWidth = 1;
}


- (void)setTitle:(NSString *)title{


    _title = [title copy];
    
    [self.contentBtn setTitle:_title forState:UIControlStateNormal];
}


- (IBAction)btnOnclick:(id)sender {
    
    if ([self.delegate respondsToSelector:@selector(subCellBtnOnclick:)]) {
        [self.delegate subCellBtnOnclick:self];
    }
}

@end
